home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / smcstylewidget.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-10-10  |  1.4 KB  |  51 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7.  
  8. #ifndef SMCSTYLEWIDGET_H
  9. #define SMCSTYLEWIDGET_H
  10.  
  11. class QEvent;
  12.  
  13. #include "ui_smcstylewidget.h"
  14. #include "styles/charstyle.h"
  15. // #include "styles/styleset.h"
  16.  
  17.  
  18. class SMCStyleWidget : public QWidget, public Ui::SMCStyleWidget
  19. {
  20.     Q_OBJECT
  21. public:
  22.     SMCStyleWidget(QWidget *parent = 0);
  23.     ~SMCStyleWidget();
  24.     
  25.     virtual void changeEvent(QEvent *e);
  26.  
  27.     void show(CharStyle *cstyle, QList<CharStyle> &cstyles, const QString &defLang, int unitIndex);
  28.     void show(QList<CharStyle*> &cstyles, QList<CharStyle> &cstylesAll, const QString &defLang, int unitIndex);
  29.     void fillLangCombo(QMap<QString,QString> langMap);
  30.     void fillColorCombo(ColorList &colors);
  31.     void languageChange();
  32.     void clearAll();
  33.  
  34. private:
  35.     QMap<QString, QString> langMap_;
  36.  
  37.     void showSizeAndPosition(const QList<CharStyle*> &cstyles);
  38.     void showEffects(const QList<CharStyle*> &cstyles);
  39.     void showColors(const QList<CharStyle*> &cstyles);
  40.     void showLanguage(const QList<CharStyle*> &cstyles, const QString &defLang);
  41.     void showParent(const QList<CharStyle*> &cstyles);
  42.  
  43.     friend class SMParagraphStyle;
  44.     friend class SMCharacterStyle;
  45.  
  46. private slots:
  47.     void slotColorChange();
  48. };
  49.  
  50. #endif
  51.